﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace TaskHubServiceDummy2
{
    /// <summary>
    /// Summary description for WebService1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Account : System.Web.Services.WebService
    {

        [WebMethod]
        public uint GetAccountIDByEmail(string Email) { return 0; }

        [WebMethod]
        public uint GetAccountIDByTelephoneNumber(string TelephoneNumber) { return 0; }

        [WebMethod]
        public AccountInformation GetAccountInformation(uint AccountID)
        { return null; }

        [WebMethod]
        public uint CreateAccount(string Email, string TelephoneNumber, string Name, string Password) { return 0; }

        [WebMethod]
        public bool ChangeAccountInformation(uint AccountID, string Email, string TelephoneNumber, string Name, string Password) { return true; }

        [WebMethod]
        public uint AuthenticateAccount(string Email, string Password) { return 0; }

    }

    public class AccountInformation
    {
        public string Email { get; set; }
        public string TelephoneNumber { get; set; }
        public string Name { get; set; }
    }

}
